package br.caixa2.entities;

import com.br.generateswingview.annotations.Alias;

public class SavingAccount extends AccountImpl {
	@Alias( "Variação" )
	private final double variation;

	public SavingAccount( Client Client, int number, double variation ) {
		super( Client, number );
		this.variation = variation;
	}

	public double getVariation() {
		return variation;
	}

	@Override
	public boolean valitacaoDeSaque( double value ) {
		return getBalance() - value >= 0;
	}

}
